package com.jianyun.jyzs.model.imdoel;

import com.jianyun.jyzs.dao.AnnCommentDao;
import com.jianyun.jyzs.dao.AnnouncementDao;

import java.util.HashMap;

/**
 * Created by yangshijun on 2018/5/29.
 */

public interface IAnnounceDetailModel {

    /**
     * 获取公告详情
     * @param dao
     * @param newsId
     * @param listener
     */
    void getAccounceDetailById(AnnouncementDao dao, String newsId,OnAnnounceDetailListener listener);

    /**
     * 提交点赞
     * @param map
     * @param listener
     */
    void commmitLike(HashMap<String, String> map,OnLikeAnnounceListener listener);

    /**
     * 提交评论
     * @param map
     * @param listener
     */
    void commitComment(HashMap<String, String> map,OnCommentAnnounceListener listener);

    /**
     * 获取评论
     * @param dao
     * @param map
     * @param enterpriseCode
     * @param listener
     */
    void getAccounceComment(AnnCommentDao dao,  HashMap<String, String> map,  String enterpriseCode,OnGetCommnetAnnounceListener listener);
    /**
     * 获取公告详情
     */
    public interface OnAnnounceDetailListener{
        void onSuccess();
        void onFailed(String msg);
    }

    /**
     * 提交点赞
     */
    public interface OnLikeAnnounceListener{
        void onSuccess();
        void onFailed(String msg);
    }

    /**
     * 提交评论
     */
    public interface OnCommentAnnounceListener{
        void onSuccess();
        void onFailed(String msg);
    }


    /**
     * 获取评论
     */
    public interface OnGetCommnetAnnounceListener{
        void onSuccess();
        void onFailed(String msg);
    }
}
